package com.insider.controller;

import com.insider.dao.PassKeeperDao;
import com.insider.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.sql.SQLException;

@Controller
public class PassKeeperController {

    @Autowired
    private UserDao userDao;

    @Autowired
    private PassKeeperDao passKeeperDao;


    @RequestMapping(value = "index")
    public String listDepartment() throws SQLException {
        return "index";
    }

    //    redirect to index.html
    @RequestMapping("/")
    public String home() {
        return "index";
    }

}
